﻿<%@ Page Language="c#" AutoEventWireup="false" Codebehind="DisplayPerson.aspx.cs" Inherits="Application.Web.DisplayPerson" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:GridView ID="PersonGridView" AllowPaging="True" AutoGenerateColumns="False"
                DataSourceID="PersonObjectDataSource" AllowSorting="True" runat="server">
                <Columns>
                    <asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" />
                    <asp:BoundField DataField="Firstname" HeaderText="Firstname" SortExpression="Firstname" />
                    <asp:BoundField DataField="Lastname" HeaderText="Lastname" SortExpression="Lastname" />
                </Columns>
            </asp:GridView>
            <asp:ObjectDataSource ID="PersonObjectDataSource" runat="server" TypeName="Application.Services.EussService"
                DeleteMethod="DeletePerson" InsertMethod="CreatePerson" SelectMethod="GetAllPerson"
                UpdateMethod="UpdatePerson" SortParameterName="sortExpression" OnObjectCreating="PersonObjectDataSource_ObjectCreating">
                <SelectParameters>
                    <asp:Parameter Name="sortExpression" Type="String" />
                    <asp:Parameter Name="firstResult" Type="Int32" />
                    <asp:Parameter Name="maxResults" Type="Int32" />
                </SelectParameters>
            </asp:ObjectDataSource>
        </div>
    </form>
</body>
</html>
